/**
 * 用户信息dao层
 */
package com.bys.ots.dao;

import com.bys.ots.model.Email;
import com.bys.ots.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author bairuihua
 * 2019/11/25
 */

@Mapper
public interface EmailMapper
{

    int insert(Email record);

    List<Email> findByUserId(@Param("userId") String userId);
    int findCountByUserId(@Param("userId") String userId);

	Email findEmailById(@Param("id") String id);

	int updateByExampleSelective(Email email);

	int deleteByEmail(@Param("email") String email, @Param("userId") String userId);

	List <Email>  findByEmail(@Param("email") String email);
}
